package com.lwz.eduservice.client;

import com.lwz.util.R;
import com.lwz.util.orderVo.UcenterMemberOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * @author Lw中
 * @date 2020/11/19 20:35
 */

@FeignClient(name = "service-ucenter", fallback = UcenterClientImpl.class)
@Component
public interface UcenterClient {

    /**
     * 根据用户id获取用户的信息
     * @param id
     * @return
     */
    @PostMapping("/educenter/member/getUserInfo/{id}")
    public UcenterMemberOrder getUserInfo(@PathVariable String id);

}
